package com.one.square.user.interfaces.service.service;

import com.one.square.core.domain.LoginAppUser;
import com.one.square.core.domain.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author cwm
 * @Description 用户模块接口
 * @date 2021/10/21 上午11:33
 * @Version 1.0
 */
@RequestMapping("/sys/user")
public interface SysUserInterface {
    /**
     * 根据用户名称查询用户对象
     *
     * @param username
     * @return
     */
    @GetMapping("/find/by/username")
    Result<LoginAppUser> findByUsername(@RequestParam("username") String username);

    /**
     * 根据手机号码查询用户
     * @param mobile
     * @return
     */
    @GetMapping("/find/by/mobile")
    Result<LoginAppUser> findByMobile(@RequestParam("mobile") String mobile);
}
